package com.drinks.yiniang.entity.category;

import com.chad.library.adapter.base.BaseMultiItemQuickAdapter;
import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.drinks.yiniang.entity.comment.BannerEntity;
import com.hansen.library.entity.BaseJson;

import java.util.List;

/**
 * @author han
 * @date 2019/9/5
 */
public class CategoryJson extends BaseJson {

    public static final int TYPE_ITEM_CATEGORY_LIST = 0x01;
    public static final int TYPE_ITEM_CATEGORY_BANNER = 0x02;

    private CategoryData data;

    public CategoryData getData() {
        return data;
    }

    public void setData(CategoryData data) {
        this.data = data;
    }

    public static class CategoryData {
        private List<CategoryList> categories;
        private List<BannerEntity> banner;

        public List<CategoryList> getCategories() {
            return categories;
        }

        public void setCategories(List<CategoryList> categories) {
            this.categories = categories;
        }

        public List<BannerEntity> getBanner() {
            return banner;
        }

        public void setBanner(List<BannerEntity> banner) {
            this.banner = banner;
        }
    }

    public static class CategoryList {
        private String id;
        //分类名称
        private String name;
        //英文名字
        private String en_name;
        //icon
        private String icon_url;
        //临时存储banner
        private BannerEntity mBanners;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getEn_name() {
            return en_name;
        }

        public void setEn_name(String en_name) {
            this.en_name = en_name;
        }

        public String getIcon_url() {
            return icon_url;
        }

        public void setIcon_url(String icon_url) {
            this.icon_url = icon_url;
        }

        public BannerEntity getBanners() {
            return mBanners;
        }

        public void setBanners(BannerEntity mBanners) {
            this.mBanners = mBanners;
        }
    }
}
